package com.aaa.vue.service;

import com.aaa.vue.entity.TabProduct;
import com.aaa.vue.mapper.TabProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class productserviceImpl implements productservice{
    @Autowired
    private TabProductMapper tabProductMapper;
    public List<TabProduct> selectAll(){
        return tabProductMapper.selectAll();
    }
    public TabProduct selectbyid(Integer productid){
        return tabProductMapper.selectByPrimaryKey(productid);
    }
    public int updateProduct(TabProduct tabProduct){
        return  tabProductMapper.updateByPrimaryKey(tabProduct);
    }

}
